﻿//#include "pch.h"
#include <windows.h>

BOOL APIENTRY DllMain(HMODULE hModule,
    DWORD  ul_reason_for_call,
    LPVOID lpReserved)
{
    switch (ul_reason_for_call)
    {
    case DLL_PROCESS_ATTACH:
        // DLL被加载时
        break;
    case DLL_THREAD_ATTACH:
        // 新线程创建时
        break;
    case DLL_THREAD_DETACH:
        // 线程退出时
        break;
    case DLL_PROCESS_DETACH:
        // DLL被卸载时
        break;
    }
    return TRUE;
}